<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
    <title>充值金额</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>

    <script type="text/javascript">
        function checkTradeCode(){
            var tradeCode=$("[name='tradeCode']").val();
            if(tradeCode==''||tradeCode.length==0){
                $("[name='tradeCode']").focus();
                alert("交易号必填!");
                return false;
            }
            return true;
        }
        $(function(){
            $("#xxForm").submit(
                function(){
                    if(!checkTradeCode()) return false;
                    return true;
                }
            );
        });

    </script>
</head>
<body>

<form method="post" id="xxForm" action="./doInsertRechargeOffline">
    银行：
    <select name="bankInfo.cbiid">
        <option value="1">工商银行</option>
        <option value="2">建设银行</option>
        <option value="2">交通银行</option>
        <option value="3">农业银行</option>
    </select><br>
    交易号：<input type="text" name="tradeCode"><br>
    充值时间：<input type="date" name="tradeTime"/><br>
    充值金额:<input type="text" name="amount"/><br>
    说明：<input type="text" name="note"><br>
    <input type="submit" value="确认提交">
</form>
</body>
</html>

